<%@page import="cn.school.service.Service"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
request.setCharacterEncoding("utf-8");
String stuno=request.getParameter("stuno");
long stuno1 = Long.parseLong(stuno);

Service s=new Service();
int r=s.deleteByStuId(stuno1);
if(r>0){
	out.println("<script>alert('删除成功');location.replace('updateStu.jsp');</script>");
}else{
	out.println("<script>alert('删除失败');location.replace('updateStu.jsp');</script>");
}

%>
</body>
</html>